
public class MyRunnable implements Runnable {
    public static int sum = 0;
    private int num = 1;

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            sum += (num++);
        }
    }
}
